home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / Samples / SampleDir / ICE / ICE.DTD
Encoding:
Text File  |  2000-07-03  |  14.4 KB  |  291 lines  |  [TEXT/ttxt]

  1. <!ENTITY % cm.messages "ice-request+
  2.                         | ice-response+
  3.                         | ice-unsolicited-now
  4.                         | ice-unsolicited-request+
  5.                         | ice-unsolicited-response+">
  6.  
  7. <!ELEMENT ice-payload  (ice-header ,  (%cm.messages; ) )>
  8. <!ATTLIST ice-payload  ice.version CDATA  #REQUIRED
  9.                        payload-id  CDATA  #REQUIRED
  10.                        timestamp   CDATA  #REQUIRED >
  11. <!ELEMENT ice-header  (ice-sender , ice-receiver? , ice-user-agent? )>
  12.  
  13. <!ELEMENT ice-sender EMPTY>
  14. <!ATTLIST ice-sender  name      CDATA  #REQUIRED
  15.                       role       (subscriber | syndicator )  #REQUIRED
  16.                       sender-id CDATA  #REQUIRED >
  17. <!ELEMENT ice-receiver EMPTY>
  18. <!ATTLIST ice-receiver  name        CDATA  #REQUIRED
  19.                         receiver-id CDATA  #REQUIRED >
  20. <!ELEMENT ice-user-agent  (#PCDATA )>
  21.  
  22. <!ELEMENT ice-code  (#PCDATA )>
  23. <!ATTLIST ice-code  message-id CDATA  #IMPLIED
  24.                     numeric    CDATA  #REQUIRED
  25.                     package-id CDATA  #IMPLIED
  26.                     payload-id CDATA  #IMPLIED
  27.                     phrase     CDATA  #REQUIRED >
  28. <!-- ============================================================ -->
  29. <!-- Declaration of ICE requests. -->
  30. <!-- ============================================================ -->
  31. <!ENTITY % sub.requests "ice-cancel
  32.                          | ice-get-catalog
  33.                          | ice-get-package
  34.                          | ice-get-sequence
  35.                          | ice-offer
  36.                          | ice-repair-item">
  37.  
  38. <!ENTITY % syn.requests "ice-package+
  39.                          | ice-send-confirmations">
  40.  
  41. <!ENTITY % com.requests "ice-change-subscription
  42.                          | ice-code
  43.                          | ice-get-event-log
  44.                          | ice-get-status
  45.                          | ice-nop
  46.                          | ice-notify">
  47.  
  48. <!ELEMENT ice-request  (%sub.requests; | %syn.requests; | %com.requests; )>
  49. <!ATTLIST ice-request  request-id CDATA  #REQUIRED >
  50. <!ELEMENT ice-cancel EMPTY>
  51. <!ATTLIST ice-cancel  lang            CDATA  #REQUIRED
  52.                       reason          CDATA  #REQUIRED
  53.                       subscription-id CDATA  #REQUIRED >
  54. <!ELEMENT ice-change-subscription EMPTY>
  55. <!ATTLIST ice-change-subscription  subscription-id CDATA  #REQUIRED >
  56. <!-- ice-code defined above -->
  57. <!ELEMENT ice-get-catalog EMPTY>
  58.  
  59. <!ELEMENT ice-get-events EMPTY>
  60. <!ATTLIST ice-get-events  format          CDATA  #IMPLIED
  61.                           start           CDATA  #IMPLIED
  62.                           stop            CDATA  #IMPLIED
  63.                           subscription-id CDATA  #IMPLIED >
  64. <!ELEMENT ice-get-package EMPTY>
  65. <!ATTLIST ice-get-package  current-state   CDATA  #REQUIRED
  66.                            parameter       CDATA  #IMPLIED
  67.                            subscription-id CDATA  #REQUIRED >
  68. <!ELEMENT ice-get-sequence  (ice-package-state+ )>
  69. <!ATTLIST ice-get-sequence  current-state   CDATA  #REQUIRED
  70.                             subscription-id CDATA  #REQUIRED >
  71. <!ELEMENT ice-package-state EMPTY>
  72. <!ATTLIST ice-package-state  package-id CDATA  #REQUIRED
  73.                              new-state  CDATA  #REQUIRED >
  74. <!ELEMENT ice-get-status EMPTY>
  75. <!ATTLIST ice-get-status  subscription-id CDATA  #IMPLIED >
  76. <!ELEMENT ice-nop EMPTY>
  77.  
  78. <!ELEMENT ice-notify  (ice-text+ )>
  79. <!ATTLIST ice-notify  priority  (1 | 2 | 3 | 4 | 5 )  #REQUIRED >
  80. <!ELEMENT ice-text  (#PCDATA )>
  81. <!ATTLIST ice-text  lang CDATA  #IMPLIED >
  82. <!-- ice-offer is declared below. -->
  83. <!-- ice-package is declared below -->
  84. <!ELEMENT ice-repair-item EMPTY>
  85. <!ATTLIST ice-repair-item  current-state        CDATA  #REQUIRED
  86.                            subscription-element CDATA  #REQUIRED
  87.                            subscription-id      CDATA  #REQUIRED >
  88. <!ELEMENT ice-send-confirmations EMPTY>
  89. <!ATTLIST ice-send-confirmations  subscription-id CDATA  #IMPLIED >
  90. <!-- ============================================================ -->
  91. <!-- Declaration of ICE responses. -->
  92. <!-- ============================================================ -->
  93. <!ENTITY % uni.responses "ice-cancellation
  94.                           | ice-catalog
  95.                           | ice-location
  96.                           | ice-offer
  97.                           | ice-package+
  98.                           | ice-sequence
  99.                           | ice-subscription">
  100.  
  101. <!ENTITY % com.responses "ice-events
  102.                           | ice-status">
  103.  
  104. <!ELEMENT ice-response  (ice-code ,  (%uni.responses; | %com.responses; )? )>
  105. <!ATTLIST ice-response  response-id         CDATA  #REQUIRED
  106.                         unsolicited-pending  (false | true )  'false' >
  107. <!ELEMENT ice-cancellation EMPTY>
  108. <!ATTLIST ice-cancellation  cancellation-id CDATA  #REQUIRED
  109.                             subscription-id CDATA  #REQUIRED >
  110. <!ELEMENT ice-catalog  (ice-contact ,  (ice-offer-group | ice-offer )* )>
  111.  
  112. <!ELEMENT ice-contact  (ice-text+ )>
  113. <!ATTLIST ice-contact  description CDATA  #REQUIRED
  114.                        lang        CDATA  #IMPLIED
  115.                        name        CDATA  #REQUIRED
  116.                        url         CDATA  #IMPLIED >
  117. <!ELEMENT ice-offer-group  ( (ice-offer-group | ice-offer )+ )>
  118. <!ATTLIST ice-offer-group  description CDATA  #REQUIRED >
  119. <!-- ice-offer declared below -->
  120. <!ENTITY % cm.events "ice-event-log">
  121.  
  122. <!ELEMENT ice-events  (%cm.events; )>
  123. <!ATTLIST ice-events  format          CDATA  #REQUIRED
  124.                       start           CDATA  #IMPLIED
  125.                       stop            CDATA  #IMPLIED
  126.                       subscription-id CDATA  #IMPLIED >
  127. <!ELEMENT ice-location EMPTY>
  128. <!ATTLIST ice-location  url CDATA  #REQUIRED >
  129. <!-- ice-offer is declared below. -->
  130. <!-- ice-package is declared below. -->
  131. <!ELEMENT ice-sequence  (ice-package-state* )>
  132. <!ATTLIST ice-sequence  subscription-id CDATA  #REQUIRED >
  133. <!ELEMENT ice-status  (ice-contact , ice-subscription+ )>
  134.  
  135. <!ELEMENT ice-subscription  (ice-offer )>
  136. <!ATTLIST ice-subscription  current-state       CDATA  #IMPLIED
  137.                             expiration-date     CDATA  #IMPLIED
  138.                             expiration-priority  (first | last )  #IMPLIED
  139.                             quantity-remaining  CDATA  #IMPLIED
  140.                             subscription-id     CDATA  #REQUIRED >
  141. <!-- ============================================================ -->
  142. <!-- Declaration of ICE unsolicited messages. -->
  143. <!-- ============================================================ -->
  144. <!ELEMENT ice-unsolicited-now EMPTY>
  145. <!ATTLIST ice-unsolicited-now  request-id CDATA  #REQUIRED >
  146. <!ELEMENT ice-unsolicited-request  (%syn.requests; | %com.requests; )>
  147. <!ATTLIST ice-unsolicited-request  unsolicited-request-id CDATA  #REQUIRED >
  148. <!ELEMENT ice-unsolicited-response  (ice-code ,  (%com.responses; )? )>
  149. <!ATTLIST ice-unsolicited-response  unsolicited-response-id CDATA  #REQUIRED >
  150. <!-- ============================================================ -->
  151. <!-- Declaration of ice-offer -->
  152. <!-- ============================================================ -->
  153. <!ELEMENT ice-offer  (ice-delivery-policy , ice-business-term* )>
  154. <!ATTLIST ice-offer  atomic-use               (false | true )  'false'
  155.                      constraints-hash        CDATA  #IMPLIED
  156.                      constraints-hash-method CDATA  #IMPLIED
  157.                      constraints-url         CDATA  #IMPLIED
  158.                      description             CDATA  #REQUIRED
  159.                      editable                 (false | true )  'false'
  160.                      ip-status               CDATA  #IMPLIED
  161.                      rights-holder           CDATA  #IMPLIED
  162.                      show-credit             CDATA  #IMPLIED
  163.                      subscription-id         CDATA  #IMPLIED
  164.                      usage-required           (true | false )  'false' >
  165. <!ELEMENT ice-business-term  (ice-text+ )>
  166. <!ATTLIST ice-business-term  type  (credit | licensing | payment | reporting )  #REQUIRED
  167.                              url  CDATA  #IMPLIED >
  168. <!ELEMENT ice-delivery-policy  (ice-delivery-rule+ )>
  169. <!ATTLIST ice-delivery-policy  startdate CDATA  #IMPLIED
  170.                                stopdate  CDATA  #IMPLIED >
  171. <!ELEMENT ice-delivery-rule  (ice-negotiable* )>
  172. <!ATTLIST ice-delivery-rule  duration  CDATA     #IMPLIED
  173.                              maxcount  CDATA     #IMPLIED
  174.                              maxfreq   CDATA     #IMPLIED
  175.                              mincount  CDATA     #IMPLIED
  176.                              minfreq   CDATA     #IMPLIED
  177.                              mode       (push | pull )  #REQUIRED
  178.                              monthday  NMTOKENS  #IMPLIED
  179.                              startdate CDATA     #IMPLIED
  180.                              starttime CDATA     #IMPLIED
  181.                              stopdate  CDATA     #IMPLIED
  182.                              url       CDATA     #IMPLIED
  183.                              weekday   NMTOKENS  #IMPLIED >
  184. <!ELEMENT ice-negotiable EMPTY>
  185. <!ATTLIST ice-negotiable  max  CDATA  #IMPLIED
  186.                           min  CDATA  #IMPLIED
  187.                           type  (duration | 
  188.                                  maxcount | 
  189.                                  maxfreq | 
  190.                                  mincount | 
  191.                                  minfreq | 
  192.                                  monthday | 
  193.                                  startdate | 
  194.                                  starttime | 
  195.                                  stopdate | 
  196.                                  weekday )  #REQUIRED >
  197. <!-- ============================================================ -->
  198. <!-- Declaration of ice-package -->
  199. <!-- ============================================================ -->
  200. <!ENTITY % cm.package "ice-item-group
  201.                        | ice-item
  202.                        | ice-item-ref">
  203.  
  204. <!ELEMENT ice-package  ( (ice-item-remove+ ,  (%cm.package; )* ) |  (%cm.package; )+ )>
  205. <!ATTLIST ice-package  activation      CDATA  #IMPLIED
  206.                        atomic-use       (false | true )  'false'
  207.                        confirmation     (false | true )  'false'
  208.                        editable         (false | true )  'false'
  209.                        exclusion       CDATA  #IMPLIED
  210.                        expiration      CDATA  #IMPLIED
  211.                        fullupdate       (false | true )  'false'
  212.                        ip-status       CDATA  #IMPLIED
  213.                        lang            CDATA  #IMPLIED
  214.                        license         CDATA  #IMPLIED
  215.                        new-state       CDATA  #REQUIRED
  216.                        old-state       CDATA  #REQUIRED
  217.                        package-id      CDATA  #REQUIRED
  218.                        item-repair      (false | true )  'false'
  219.                        rights-holder   CDATA  #IMPLIED
  220.                        show-credit     CDATA  #IMPLIED
  221.                        subscription-id CDATA  #REQUIRED >
  222. <!ELEMENT ice-item-remove EMPTY>
  223. <!ATTLIST ice-item-remove  subscription-element CDATA  #REQUIRED >
  224. <!ELEMENT ice-item-group  ( (%cm.package; )+ )>
  225. <!ATTLIST ice-item-group  activation           CDATA  #IMPLIED
  226.                           expiration           CDATA  #IMPLIED
  227.                           ip-status            CDATA  #IMPLIED
  228.                           item-group-id        CDATA  #REQUIRED
  229.                           lang                 CDATA  #IMPLIED
  230.                           license              CDATA  #IMPLIED
  231.                           name                 CDATA  #IMPLIED
  232.                           rights-holder        CDATA  #IMPLIED
  233.                           show-credit          CDATA  #IMPLIED
  234.                           subscription-element CDATA  #IMPLIED >
  235. <!ENTITY % cm.item "#PCDATA">
  236.  
  237. <!ELEMENT ice-item  (%cm.item; )>
  238. <!ENTITY % attlist.item " activation                CDATA  #IMPLIED
  239.                      expiration                CDATA  #IMPLIED
  240.                      content-filename          CDATA  #IMPLIED
  241.                      content-transfer-encoding  (base64 | x-native-xml )  'x-native-xml'
  242.                      content-type              CDATA  'application/octet-stream'
  243.                      ice-element               CDATA  #FIXED 'ice-item'
  244.                      ip-status                 CDATA  #IMPLIED
  245.                      item-id                   CDATA  #REQUIRED
  246.                      lang                      CDATA  #IMPLIED
  247.                      license                   CDATA  #IMPLIED
  248.                      rights-holder             CDATA  #IMPLIED
  249.                      show-credit               CDATA  #IMPLIED
  250.                      subscription-element      CDATA  #IMPLIED">
  251.  
  252. <!ATTLIST ice-item  %attlist.item;
  253.                     name         CDATA  #REQUIRED >
  254. <!ELEMENT ice-item-ref EMPTY>
  255. <!ATTLIST ice-item-ref  activation           CDATA  #IMPLIED
  256.                         content-filename     CDATA  #IMPLIED
  257.                         expiration           CDATA  #IMPLIED
  258.                         ip-status            CDATA  #IMPLIED
  259.                         item-id              CDATA  #REQUIRED
  260.                         license              CDATA  #IMPLIED
  261.                         name                 CDATA  #REQUIRED
  262.                         rights-holder        CDATA  #IMPLIED
  263.                         show-credit          CDATA  #IMPLIED
  264.                         subscription-element CDATA  #IMPLIED
  265.                         url                  CDATA  #REQUIRED >
  266. <!-- ============================================================ -->
  267. <!-- Declaration of default ice-event-log -->
  268. <!-- ============================================================ -->
  269. <!ELEMENT ice-event-log  ( (ice-event-msg | ice-event-info )* )>
  270. <!ATTLIST ice-event-log  version CDATA  #REQUIRED >
  271. <!ELEMENT ice-event-msg  (ice-code? , ice-event-data? )>
  272. <!ATTLIST ice-event-msg  other-id        CDATA  #IMPLIED
  273.                          request         CDATA  #REQUIRED
  274.                          request-id      CDATA  #REQUIRED
  275.                          request-start   CDATA  #REQUIRED
  276.                          request-type    CDATA  #IMPLIED
  277.                          response        CDATA  #REQUIRED
  278.                          response-id     CDATA  #IMPLIED
  279.                          response-stop   CDATA  #REQUIRED
  280.                          response-type   CDATA  #IMPLIED
  281.                          role             (requestor | responder )  #REQUIRED
  282.                          subscription-id CDATA  #IMPLIED >
  283. <!ELEMENT ice-event-info  (ice-event-data? )>
  284. <!ATTLIST ice-event-info  event       CDATA  #REQUIRED
  285.                           event-start CDATA  #REQUIRED
  286.                           event-stop  CDATA  #REQUIRED >
  287. <!ELEMENT ice-event-data ANY>
  288.  
  289. <!ELEMENT ice-get-event-log ANY>
  290.  
  291.